Skip to content

fix: enhance slugify function to handle markdown links#2697

Open
sy-records wants to merge 2 commits intodocsifyjs:developfrom
sy-records:slug
Open

fix: enhance slugify function to handle markdown links#2697
sy-records wants to merge 2 commits intodocsifyjs:developfrom
sy-records:slug

Conversation

@sy-records
Copy link
Copy Markdown
Member

Summary

Related issue, if any:

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

For any code change,

  • Related documentation has been updated, if needed
  • Related tests have been added or updated, if needed

Does this PR introduce a breaking change?

  • Yes
  • No

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 17, 2026

@sy-records is attempting to deploy a commit to the Docsify Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docsify-preview Ready Ready Preview, Comment Mar 26, 2026 4:37am

@paulhibbitts
Copy link
Copy Markdown
Member

Happy to help test @sy-records , but with this one I am sure how to do so - any suggestions? Thanks!

@sy-records
Copy link
Copy Markdown
Member Author

sy-records commented Mar 26, 2026

If the title contains a link, the ID will be parsed incorrectly # [5.0.0-rc.4](https://github.com/docsifyjs/docsify/compare/v5.0.0-rc.3...v5.0.0-rc.4) (2026-03-11)

before:
https://preview.docsifyjs.org/#/changelog?id=_500-rc3httpsgithubcomdocsifyjsdocsifycomparev500-rc1v500-rc3-2025-09-05

after: https://docsify-preview-git-fork-sy-records-slug-docsifyjs.vercel.app/preview/#/changelog?id=_500-rc3-2025-09-05

Copy link
Copy Markdown
Member

@paulhibbitts paulhibbitts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sy-records , now I see! Tested it various links on the PR Preview build and things look good, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants